package com.example.wenliangjiudian.controller;

import com.example.wenliangjiudian.entity.Customer;
import com.example.wenliangjiudian.pojo.CustomerInRoomLogDO;
import com.example.wenliangjiudian.service.InLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Controller
public class InLogController {

    @Autowired
    private InLogService inLogService;

    @RequestMapping("/inLog/list")
    public Object list(HttpServletRequest request) {

        List<CustomerInRoomLogDO> list = inLogService.listCustomerInRoomLog();
        request.setAttribute("list", list);

        return "back/in_log_info";
    }
}
